The 0.5 release happened on 2/15, not on 2/14. :-)
[python/dscho.git] / Mac / IDE scripts / Widget demos / ListWindow.py
blobef066b9e670a3cee7e8f472f9d2c82ec17943bc3
1 import W
3 def listhit(isdbl):
4 if isdbl:
5 print "double-click in list!"
6 else:
7 print "click in list."
9 window = W.Window((200, 400), "Window with List", minsize = (150, 200))
11 window.list = W.List((-1, 20, 1, -14), [], listhit)
13 # or (equivalent):
14 # window.list = W.List((-1, 20, 1, -14), callback = listhit)
16 window.list.set(range(13213, 13350))
17 window.open()